
// 注意：导航 依赖 element 模块，否则无法进行功能性操作
layui.use('element', function() {
    var element = layui.element;
    element.render();
});
/*************************************分页（刷新分页实例）*******************************************/

layui.use('laypage', function () {
    var laypage = layui.laypage;
    var totalCount=$("#PublishNumber").val();
    var whichPage=$("#whichPage").val();
    var userId=$("#userId").val();
    var currentPage=$("#PcurrentPage").val();
    //执行一个laypage实例
    laypage.render({
        elem: 'Bpage'
        , count: totalCount
        , limit: 20
        , curr: currentPage //获取起始页
        , first: '首页'
        , last: '尾页'
        , prev: '<em>←</em>'
        , next: '<em>→</em>'
        , skip: true
        , jump: function (obj, first) {
            if (!first) {
                window.location.href="/manager/checkUser.do?PcurrentPage="+obj.curr+"&whichPage="+whichPage
                +"&userId="+userId;
            }
        }
    });
});

layui.use('laypage', function () {
    var laypage = layui.laypage;
    var totalCount=$("#CollectionNumber").val();
    var whichPage=$("#whichPage").val();
    var userId=$("#userId").val();
    var currentPage=$("#CcurrentPage").val();
    //执行一个laypage实例
    laypage.render({
        elem: 'Bpage1'
        , count: totalCount
        , limit: 20
        , curr: currentPage //获取起始页
        , first: '首页'
        , last: '尾页'
        , prev: '<em>←</em>'
        , next: '<em>→</em>'
        , skip: true
        , jump: function (obj, first) {
            if (!first) {
                window.location.href="/manager/checkUser.do?CcurrentPage="+obj.curr+"&whichPage="+whichPage
                    +"&userId="+userId;
            }
        }
    });
});

layui.use('laypage', function () {
    var laypage = layui.laypage;
    var totalCount=$("#AttentionNumber").val();
    var whichPage=$("#whichPage").val();
    var userId=$("#userId").val();
    var currentPage=$("#AcurrentPage").val();
    //执行一个laypage实例
    laypage.render({
        elem: 'Bpage2'
        , count: totalCount
        , limit: 20
        , curr: currentPage //获取起始页
        , first: '首页'
        , last: '尾页'
        , prev: '<em>←</em>'
        , next: '<em>→</em>'
        , skip: true
        , jump: function (obj, first) {
            if (!first) {
                window.location.href="/manager/checkUser.do?AcurrentPage="+obj.curr+"&whichPage="+whichPage
                    +"&userId="+userId;
            }
        }
    });
});


layui.use('laypage', function () {
    var laypage = layui.laypage;
    var totalCount=$("#ObtainNumber").val();
    var whichPage=$("#whichPage").val();
    var userId=$("#userId").val();
    var currentPage=$("#OcurrentPage").val();
    //执行一个laypage实例
    laypage.render({
        elem: 'Bpage3'
        , count: totalCount
        , limit: 20
        , curr: currentPage //获取起始页
        , first: '首页'
        , last: '尾页'
        , prev: '<em>←</em>'
        , next: '<em>→</em>'
        , skip: true
        , jump: function (obj, first) {
            if (!first) {
                window.location.href="/manager/checkUser.do?OcurrentPage="+obj.curr+"&whichPage="+whichPage
                    +"&userId="+userId;
            }
        }
    });
});